package com.jxw.launcher;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.jxw.launcher.APPControl;
import com.jxw.launcher.util.Logger;
import com.jxw.utils.SPUtils;

/* loaded from: classes.dex */
public class APPActivity extends Activity implements APPControl.OnItemClickLinser {
    @Override // android.app.Activity
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        View inflate = LayoutInflater.from(this).inflate(R.layout.activity_app, (ViewGroup) null);
        setContentView(inflate);
        new APPControl(this, inflate).setOnItemClick(this);
    }

    @Override // com.jxw.launcher.APPControl.OnItemClickLinser
    public void onItemClick(String str) {
        Intent intent = new Intent();
        intent.putExtra("pkg", str);
        setResult(-1, intent);
        Logger.getLogger().e("finish");
        SPUtils.setPack(str);
        finish();
    }

    public void onExit(View view) {
        finish();
    }
}
